{% if section.settings.enable_content %}
<div class="py-section">
  <div class="container">
    <h1 class="page-title mb-6">{{ page.title | escape }}</h1>
    <article class="richtext-description">
      {{ page.content }}
    </article>
  </div>
</div>
{% endif %}
{{ section.settings.h_tag }}

{% schema %}
{
  "name": "t:sections.main-page.name",
  "tag": "section",
  "class": "spaced-section",
  "settings": [
    {
      "type": "checkbox",
      "label": "Enable content",
      "id": "enable_content",
      "default": true
    },
    {
      "label": "H tag",
      "type": "html",
      "id": "h_tag"
    }
  ]
}
{% endschema %}
